import Cookies from 'js-cookie';

const TOKEN_KEY = 'token';

const getToken = function() {
	return Cookies.get(TOKEN_KEY);
}

const setToken = function(token) {
	return Cookies.set(TOKEN_KEY, token);
}

const removeToken = function() {
	return Cookies.remove(TOKEN_KEY);
}

export {
	getToken,
	setToken,
	removeToken
}
